package com.controller.zk;

import com.bean.zk.State;
import com.service.zk.StateService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class StateController {

    @Resource
    private StateService stateService;

    @RequestMapping("/page/getstatus")
    @ResponseBody
    public List<State> getStates(){
        return stateService.getStates();
    }
}
